package com.ylr.config.common.vo.enum_;

import com.ylr.base.common.jsr303.group.Save;
import com.ylr.base.common.jsr303.group.Update;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-06 16:00:17
 * className: EnumVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
@ToString
public class EnumVo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = Update.class)
    private Long id;

    /**
     * 枚举类型
     */
    @NotNull(message = "枚举类型不能为空", groups = { Save.class, Update.class })
    private Integer type;

    /**
     * 枚举项名称
     */
    @NotBlank(message = "枚举项名称不能为空", groups = { Save.class, Update.class })
    private String enumName;

    /**
     * 枚举项值
     */
    @NotNull(message = "枚举项值不能为空", groups = { Save.class, Update.class })
    private Long enumValue;

    /**
     * 排序等级
     */
    @NotNull(message = "排序等级不能为空", groups = { Save.class, Update.class })
    private Integer sort;

    /**
     * 备注
     */
    private String remark;

}
